<?php

	// AGREGAR ACTIVIDAD
/*	try{
	  $sClient = new SoapClient('http://localhost/syncrolist/webservice.xml');
	  
	  $params = array();
	  $response = $sClient->addActivity(2, "Titulo","Detalle","2013-02-01T09:00:00");
	  
	  var_dump($response);
	  
	  
	} catch(SoapFault $e){
	  var_dump($e);
	}


*/
	// BORRAR ACTIVIDAD
	try{
	  $sClient = new SoapClient('http://raulsanchez.com.ar/syncrolist/webservice.xml');
	  
	  $params = array();
	  $response = $sClient->deleteActivity(7);
	  
	  var_dump($response);
	  
	  
	} catch(SoapFault $e){
	  var_dump($e);
	}
	die();

/*
	// LOGIN
	try{
	  $sClient = new SoapClient('http://localhost/syncrolist/webservice.xml');
	  
	  $params = array();
	  $response = $sClient->login("rauls",sha1("riogrande"));
	  
	  var_dump($response);
	  
	  
	} catch(SoapFault $e){
	  var_dump($e);
	}
	die('');

	// ACTUALIZAR ACTIVIDAD
	try{
	  $sClient = new SoapClient('http://localhost/syncrolist/webservice.xml');
	  
	  $params = array();
	  $response = $sClient->updateActivity(1,"Titulo","Detalle","2013-02-01T09:30:00");
	  
	  var_dump($response);
	  
	  
	} catch(SoapFault $e){
	  var_dump($e);
	}

*/

	// LISTAR ACTIVIDADES
	try{
	  $sClient = new SoapClient('http://www.raulsanchez.com.ar/syncrolist/webservice.xml');
	  
	  $params = array();
	  $response = $sClient->listActivities(1);
	  
	  var_dump($response);
	  
	  
	} catch(SoapFault $e){
	  var_dump($e);
	}